QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    add_admin.cpp \
    admin_interface.cpp \
    book.cpp \
    bookinfo.cpp \
    bookstore.cpp \
    changecode.cpp \
    exportfile.cpp \
    herobank.cpp \
    init.cpp \
    login.cpp \
    main.cpp \
    mainwindow.cpp \
    menutobooks.cpp \
    revise.cpp \
    show_stuinfo.cpp \
    signin.cpp \
    stu_interface.cpp \
    student.cpp \
    studentstore.cpp \
    importstudent.cpp \
    show_stulist.cpp \
    test.cpp \
    utils.cpp \
    debug.cpp \
    show_menulist.cpp \
    debug_addmenu.cpp \
    debug_addbook.cpp \
    debug_show_booklist.cpp \
    debug_addrecord.cpp \
    debug_show_recordlist.cpp \
    debug_borrowbook.cpp \
    debug_returnbook.cpp \
    debug_delete.cpp \
    show_messagelist.cpp \
    add_message.cpp

HEADERS += \
    add_admin.h \
    admin_interface.h \
    book.h \
    bookinfo.h \
    bookstore.h \
    changecode.h \
    exportfile.h \
    herobank.h \
    init.h \
    login.h \
    mainwindow.h \
    menutobooks.h \
    revise.h \
    show_stuinfo.h \
    signin.h \
    stu_interface.h \
    student.h \
    studentstore.h \
    importstudent.h \
    show_stulist.h \
    test.h \
    utils.h \
    debug.h \
    show_menulist.h \
    debug_addmenu.h \
    debug_addbook.h \
    debug_show_booklist.h \
    debug_addrecord.h \
    debug_show_recordlist.h \
    debug_borrowbook.h \
    debug_returnbook.h \
    debug_delete.h \
    show_messagelist.h \
    add_message.h

FORMS += \
    add_admin.ui \
    admin_interface.ui \
    bookinfo.ui \
    changecode.ui \
    exportfile.ui \
    herobank.ui \
    login.ui \
    mainwindow.ui \
    menutobooks.ui \
    revise.ui \
    show_stuinfo.ui \
    signin.ui \
    importstudent.ui \
    show_stulist.ui \
    debug.ui \
    stu_interface.ui \
    test.ui \
    show_menulist.ui \
    debug_addmenu.ui \
    debug_addbook.ui \
    debug_show_booklist.ui \
    debug_addrecord.ui \
    debug_show_recordlist.ui \
    debug_borrowbook.ui \
    debug_returnbook.ui \
    debug_delete.ui \
    show_messagelist.ui \
    add_message.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    book.dat \
    menu.dat \
    record.dat \
    student.dat

RESOURCES += \
    image.qrc
